// 先导入所有模块
import { userApi } from './user.js'
import { documentApi, documentUploadApi } from './document.js'
import { conversationApi, messageApi, chatApi } from './conversation.js'
import { permissionApi } from './permission.js'
import { statisticsApi, dashboardApi, searchApi } from './dashboard.js'
import http from './http.js'

// API接口统一导出
export { userApi }
export { documentApi, documentUploadApi }
export { conversationApi, messageApi, chatApi }
export { permissionApi }
export { statisticsApi, dashboardApi, searchApi }
export { http }

// 导出所有API的集合对象，方便在组件中使用
export const api = {
  user: userApi,
  document: documentApi,
  documentUpload: documentUploadApi,
  conversation: conversationApi,
  message: messageApi,
  chat: chatApi,
  permission: permissionApi,
  statistics: statisticsApi,
  dashboard: dashboardApi,
  search: searchApi
}
